Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error handling in backup status banner #23604

Merged
merged 4 commits into from
Jan 6, 2025
Merged

Conversation

piitaya
Copy link
Member

@piitaya piitaya commented Jan 6, 2025

Proposed change

Improve backup status and fix config and info refresh.

Here's the different cases that are covered by the banner.

No backup available

CleanShot 2025-01-06 at 16 09 59

Backup success

CleanShot 2025-01-06 at 15 59 08

Backup failure : backup creation failure

With previous successful backup
CleanShot 2025-01-06 at 16 07 25

Without previous successful backup
CleanShot 2025-01-06 at 16 00 42

Backup failure : not uploaded to all locations

With previous successful backup
CleanShot 2025-01-06 at 15 44 20

Without previous successful backup
CleanShot 2025-01-06 at 15 45 48

No backup for X days

CleanShot 2025-01-06 at 16 09 31

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue or discussion:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

@piitaya piitaya added this to the 2025.1 milestone Jan 6, 2025
);

// If no backups yet, show warning
if (!lastBackup) {
Copy link
Member

@bramkragten bramkragten Jan 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be that the last (first, as there are not backups yet) attempt failed, we don't show that now.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, we should move the last attempt test before that case.

@bramkragten
Copy link
Member

For a next PR, we should create a gallery page with all the different states, you probably already have something like that to develop (seeing the screenshots), would help others too :-)

@piitaya
Copy link
Member Author

piitaya commented Jan 6, 2025

For a next PR, we should create a gallery page with all the different states, you probably already have something like that to develop (seeing the screenshots), would help others too :-)

Not really but I will create a PR for that 😅

@bramkragten bramkragten merged commit ffff797 into dev Jan 6, 2025
15 checks passed
@bramkragten bramkragten deleted the backup_banner_display branch January 6, 2025 16:30
bramkragten pushed a commit that referenced this pull request Jan 6, 2025
* Improve error handling in backup status banner

* Fix completion

* Fix loading

* Check attempt and completion date first
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants